package JPetStore.persistence;

import JPetStore.domain.Account;
import JPetStore.domain.Order;

import java.util.List;

public interface OrderDao {
    void insertOrder(Account account, Order order);

    int getLatestOrderId();

    Order getOrderByOrderId(int id);
    List<Order> getOrdersByUsername(String name);
}
